<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        function method01(){
            var screenHeight=window.screen.availHeight;
            var screenWidth=window.screen.availWidth;

            var windowWidth=600;
            var windowheight=200;

            var leftP=(screenWidth-windowWidth)/2;
            var topP=(screenHeight-windowheight)/2;


            window.open('js08_01_01.html','','width='+windowWidth+',height='+windowheight+',left='+leftP+',top='+topP+'');
        }

    </script>

</head>
<body>
<button onclick="method01()">打开窗口</button>
</body>
</html>